updating plugin for slideshow