Fix gallery pages to validate