Fixed a bug in the carousel when move != visible slides

In short: if slides to move != visible slides, the carousel target page is not always counted correctly.

We experienced this bug when we were implementing click listeners to the carousel items which show the clicked item in the main slider. As the slider changes the slide, it also moved the carousel to what it thought was the "correct page". The bug appeared when clicking the last image (might appear also in other cases), the carousel incorrectly slid to the previous page although it should've staid on the last page. 

In our particular case we had 4 items per page and it was moving 1 item at a time.