measure mobile / tablet device orientation