Update gallery to remove index offset php warning
Merge pull request #1219 from petemcfarlane/master

Update gallery to remove index offset php warning