Let me clear this up for you.
Avengers, X-Men, and Spider-Man are all owned by three different studios and exist in their own universes.
Disney owns Avengers
Fox owns X-Men and Fantastic Four
Sony owns Spider-Man
Guardians of the Galaxy exists in the Marvel Cinematic Universe (Avengers) Marvel has a very deep cosmic presence.