For APFS hard drive, it is recommended to add a volume instead of a partition. All the APFS volumes can share the unused storage space on the main drive, and adding a volume doesn't erase the currently stored contents. While the partition is allocated with a fixed storage space, when there is not enough space to use, it can't grab free space from other partitions, and creating a partition delete all the data on the main drive.