From what I learned, Einstein believed in a static universe but from his general relativity equations universe must collapse under gravity. Hence Einstein adjusted this gravity with cosmological contact which is a kind of anti-gravitational effect. But later it was discovered that the universe is expanding. Einstein was ashamed by his cosmological constant and threw it out from his equations. My doubt is how the removal of cosmological constant agrees with an expanding universe ?. When there's nothing to counteract gravity, shouldn't the universe be contracting?.