Photo Gallery Bug

Caught a bug in my js that was causing the pictures to display just off
by 1 picture when showing a certain image but its all fixed now