fiddled with fb preview
set max value of counter for gallery iterator to length of image array