Updated slice functionality