Added dynamic device width