add basic slice functions