video player / slideshow refactoring