MOD: get device width and height