Fixed problem with slideshow