Ensure the next slide is in the correct position before animating.

Without this line the next slide can sometimes be in the wrong location causing the current slide to exit to the left and the next slide to enter from the left.