make the size of cell dynamic