Slideshow buttons implemented on the js end