Even if I were to change itemHeight/width I still would need to make orientation conditional twice. Once in _displayImage() and once in _switchToFullSizeImage. So we don't safe any code compared to the two conditionals in pan() and zoom().