fixed bug that shows all categories before slice tehm for pagination. added security so that users cannot see groups if they are not a member