Here's why:
* Adverbs modify verbs, adjectives, or other adverbs. They answer questions like "how," "when," "where," or "to what extent."
* "Lengthwise" is an adverb describing *how* you measured the frame.
* "Then" is an adverb describing *when* you fastened the frame.
* "Securely" is an adverb describing *how* you fastened the frame.
* "Frame" is a noun, the object of the verb "measured."