Add .slice() method for slicing functions