adding gallery fields and output