removed legacy code which caused issue #978

this fixes a bug (#978) that caused the slideshow to quickly show the first slide in place of the last slide if navigating backwards.