Adding cycle for slideshow