use limit & offset for pagination of group members

This supersedes PR#2978.