working on galleries organization and retrieval