Fixed the restarting slide show bug.