fixed slideshow glitch