instanceof Slice is always false. removed superfluous code snippet
removed unnecessary unboxing