Speed up slice by using triplets.