Got the slider to work for previous button clicks