calculate size for the GL view maintaining aspect ratio, rather than hard coding sizes