(Anti-)deuteron production and anisotropic flow measured with ALICE at the LHC