Need a graceful fallback here for slices=None. Something like `for coord_index in range(len(slices or []))`