gallery error

fixed content box / gallery bug