refactored slide_show
removed some unnecessary functions