add slice method