Mind the gap: the power of combining photometric surveys with intensity mapping