checking in latest sync_slices code. move get_next_subnet to sync_slices