slice before learning