Changed buffer resizing direction horizontally