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