grid resizing works