Sliding gallery images have blank spaces at the end?

Hello, I am currently working on creating an image gallery for this site.

When you click on the right arrow and go through all of the images and get to the end of the gallery, there are these blank spaces with no images and you have to click on the button about six times before you get back to the beginning.

I’m so confused why this is happening! Any ideas or insight would be much appreciated.

Here is the read only link.

Here is my site Read-Only: [LINK]1