if i create subnets in Security Appliance with different VLAN and placed unmanaged switches in front of every subnet will this work for me?
Yes. You just need to set the MX's ports to "Access" mode and specify the VLAN (so subnet) you want for that port. Outside of the MX nothing needs to know about the VLAN ids you chose.