added support for slideshow