fixed bugs in multiple slideshow