update device width