sets maxwidth for mobile