Fix #4284 for slices, too