Hi @theatereleven
Before I review your code, can you please look over the documentation provided for the gallery field?
http://www.advancedcustomfields.com/resources/field-types/gallery/
Let me know if you have any questions regarding the example code.
Thanks
E