LM: Dynamically change height of slope to ensure maximum land

[#58536692]