releasing a slide moves to the correct frame