generalize left/right arrow buttons for sliders