Created slideshow logic, first version