move flex layout into mixin