Development of gravity currents on rapidly changing slopes