changed code for slideshow widget