Fixing flush for page name substr of gallery name