Implemented pagination for neighbors list