replace resistor with a trimmer

Alternately you could bent the single back leg up to the front leg and solder it there if the hole spacing is more that size. It all depends on the size of your trimpot. Some have more spacing between the front and back legs.