make pagination work again in groups directory