added conditional to allow gallery to appear full width