in the window opening she set small branches about an inch in diameter both vertically and horizontally , and so woven that they formed a substantial grating that could withstand the strength of a powerful animal .