Make gallery meta data member of class not method