__getslice__ compatibility