Slice

Rework slice to avoid redundancy in the code