optimization of slitscan