fix slice of deque