set slice optimized