Resize pattern