Turns out to be faster to clear and then resize than it is to resize down and manually assign the elements