load gallery script when showing post edit page