added multiple slideshow support