fixed issues with slideshow