Fixed bug with slideshow