semantic: Replace dollar expressions in slices too.