Improve cell resizing