Customizing number of cells based on size