If you dont want to be fiddling around then the safest way(imo) would probably be to just leave whatever space you want to allocate to Ubuntu unallocated and just point the installer to the "largest continuous free space" during partitioning.
Let it do the work
If your resizing current Windows partitions remember and defrag a good couple of times