Calculation of number of columns and adjust on orientationchanges.