optimized __getslice__, about 20 percent faster.