Build the basic structure of gallery