fixed a slideshow issue