fixes device width