Use slicing syntax instead of methods and add a feature gate

cc @aturon 

r? anyone?
The the `[a..b]` syntax is not actually provided by the `ImmutableSlice` trait, so the documentation should either be updated to use the `Slice` trait or another method on `ImmutableSlice` (e.g., `split`).