Drag the slider around to change the slider variable. You change the min and max values by using the buttons. Use the plus and minus to increment or decrement the number if you can’t get the slider to the right place.
I made a better slider. If you want to use it, you would have to keep a constant min and max x position and value.