create partitions and calculate sizes