The center of the frame should be parallel to the floor of the attic. Make sure you don't screw into electrical wires by fastening the frame to the joists. The spaces between the frame members are full. Remove the thick plywood from the attic stairs.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.