creating chunks of equal size of data