Implementation of gallery WIP