So, if I understand it well I must have:
-FW version 1.9 to have VLAN aware/configureable switch
-add all ports to switch0
-ports 0-3 add to VLAN(in my case VLAN10 untagged, also on ports 2,3 VLANs 20,30 tagged)
-ports 4,5 leave as they are, so that trafic won't bother cpu
-(switch0 will act as WAN for ip ranges on VLANs)