Fixed a bug in the target page counting when the amount of slides to move is not equal to visible slides.