fix slideshow problem