update Slice.cpp - fix infinite loop