slideshow working properly