Fix/slice bug

The compactize operation works with a copy of the slice information, so the clearOperation does not remove its information.