If the underlined sentence is As we walked along the beach, then the correct answer is adverb sentence, because it denotes the way and time those stars glittered - as they were walking.
If the underlined sentence is thousands of stars glittered above us, the correct answer is independent sentence.