slice method added.