Slippage is never considered in the optimization process. Slippage can be applied in the script settings only in trading; this parameter is received by your broker together with your order.
Do not forget to consider slippage in the optimization process (laboratory mode).
It should just be considered. Use the block Absolute Commission or Relative Commission and apply some bigger value in the parameter Commission. That is how slippage can be considered in the laboratory mode.