parition changes

Originally the 2nd non-OS disk contained two primary partitions fully
allocated to drives D and drive G. I shrunk both and the unallocated space is
separated by the second former partition (drive G). How can i get the two
unallocated spaces into one area to format and create a new partition
thank you for your help