Gauge invariant target space entanglement in D-brane holography