When a star's mass is ejected during a supernova, it expands quickly. Eventually, it will slow and form a hot bubble of glowing gas. A white dwarf will emerge from this gas bubble and move across the galaxy.
The afterglow of short gamma ray burst that was detected 10 billion light-years away is shown here in a circle. This image was taken by the Gemini-North telescope.
This Hubble Space Telescope image shows NGC 7513, a barred spiral galaxy 60 million light-years away. Due to the expansion of the universe, the galaxy appears to be moving away from the Milky Way at an accelerate rate.