Magneto-hydrodynamic interaction in a vertical slot filled with ferrofluid