GalleryView plugin need to find position of first and last image

GalleryView plugin need to find position of first and last image

Hello, I am looking to customize the arrows of the GalleryView plugin if first or last image is being displayed in the panel. I am unable to achieve it. Any help on this would be really appreciated!

Cheers