Twig's slice just uses array_slice