reallocate slice instead of re-slicing