slideshow bug fix