rewrite gallery-form template in cmsadmin and apply switch of limit numbers on gallery