update the slideshow code