add basic funcionality for the slideshow