Rename Slice to AsSlice because of Rust change

Corresponding change for https://github.com/rust-lang/rust/pull/17807