Transverse cooling and deflection of an atomic beam inside a Zeeman slower