Slicing based on threshold