Better deque shrinking