On gravity currents over changing topography