Capillary trapping in a vertically heterogeneous porous layer. (19th January 2021)