fixed logical bug in sambamba slice