added $slice to the loop