Greene-Kleitman correspondence and Viennot’s shadow line revisited