resizes gallery based on photo displayed
adds some descriptive comments
Merge pull request #190 from G5/gallery-ios-fix

resizes gallery based on photo displayed