I ended up finding simple coding to make the slider bar work within a set of parameters. I coded this on a separate layer named actions. The slider now goes back and for on the 68 y axis and it stops at the 64 left x axis and the 542 right x axis. Behind it is a slider track so it looks like it's moving along that track when I drag it with the mouse.