dynamic resize of cells