Fixed div closure and put imagegallery in a section, added margin for imagegallery in mediaquery