refactoring demo gallery7