Got the slider to work for next button clicks