fix bug slideshow