fixed slideshow issue