Use slicing syntax instead of methods and add a feature gate

cc @aturon 

r? anyone?
Oh whoops, that change shouldn't even be part of this branch.