Small change to use the std library for slicing.

Less code, and can hopefully make use of any future speed ups in the
library.