rename slice function