optimized next and prev leaves in Cell