allow cursor as slice