Slider now working, although it goes backwards to get back to image 1.