removed unused php code
hide gallery until JS is called to prevent reflow while images are loading