Calculate cell size according to screen size.