Finally got the slideshow working