The front wing is triple plane for the same reason aircraft have flaps - to generate loads of downforce (or lift in the case of aeroplanes). Unfortunately, this lift does not come free, and drag will be increased.
A triple plane wing will have more drag than a double plane wing - but will be producing more downforce.
The reason for the gaps is to re-energise the flow underneath the wing as a whole, keep it flowing faster, and thus add to the circulatory bound vortex that is what is providing the downforce.
This shows it quite well - you see the area above the main wing - the air immediately above the surface boundary layer is actually moving quicker than the wake that came from the leading edge slat (uhm, just think of it as the forward wing on the f1 car). Keeping the flow moving = keeping downforce levels up. But there are 3 stagnation points, and 3 wing wakes = more drag.