fixed slideshow display glitch