added nesting for photos and memories