Measurement of cell thickness