Sliding elements for covering and uncovering discharge openings of containers