add some more cases for slice