slice segment one by one