Shortens the caveRects array after resizing