Use Len instead of Cap when copying slices.