adjust device width