Fix layout for Safari

Added -webkit- prefix for flex layout to work correctly in Safari.