migrate group_members functionality to groups serializer