Slideshow script fixed