handle __getitem__ without slice