adds callback at end of slideshow
added code samples