Most German adjectives can be used as adverbs too. There is nothing like the suffix »-ly« in English that transforms an adjective (like slow) into an adverb (like slowly).
If the adjective/adverb describes a noun, then it is an adjective. If it describes a verb it is an adverb:
Die Schnecke ist langsam.
The snail is slow.
»Langsam« (slow) describes a property of »Schnecke« (snail). And since »Schnecke« is a noun, langsam is an adjective here. You can use an adjective also in this way:
Die langsame Schnecke ist braun.
The slow snail is brown.
Here is is more clear that the word describes the noun.
Die Schnecke kriecht langsam.
The snail crawls slowly.
In this sentence the word »langsam« does not describe how the snail is. It describes the manner of crawling. So »langsam« is describing the verb »kriechen«, and this makes »langsam« an adverb in this sentence.
Lets try a different construction:
Die langsam kriechende Schnecke ist braun.
The slowly crawling snail is brown.
Also here the word langsam describes the verb, not the noun.
Gemeinsam sind wir stark.
Together we are strong.
»Gemeinsam« (together) is not a property of »wir« (we). The word »gemeinsam« describes the manner of being, so it describes the verb (»sein - sind«, »to be - are«). And this is the reason why »gemeinsam« is an adverb.
Maybe ii is clearer when you look at this sentence:
Gemeinsam sein macht uns stark.
Being together makes us strong.