"underneath the shelf" is a prepositional phrase serving as an adverb.
Which part of speech typically does the job of a subject in a sentence?
Imported from external platform