Getting real device width and height for iOS and Android