added api to get size of each partition in bytes