added custom slideshow code