Long-range interactions and entanglement of slow single-photon pulses