Fix slice selection logic.