Hubble telescope was at the perfect angle to capture this nearly impossible shot of two 'dancing galaxies'