$${l = v_0 \sqrt{-\frac{2h}{g_y}} = v_0 \sqrt{-\frac{2h}{g}}}$$