Optimize layer stacking

Create the content layers before the inverter and thus remove all calls
to layer_insert_below_sibling().