finally got the slideshow working