resize dialog to relative unit for moblie view