Fixed problem where if a user was on the last photo or first photo and changed orientations, it would go to the next photo.