Use slicing syntax instead of methods and add a feature gate

cc @aturon 

r? anyone?
Three lines above, `..` needs to be changed to `...` as well (i.e., ‘A range of values may be specified with `...`.’)