Soldiers are holding guns and peeking around a building.
Soldiers are packing heat near a building.
Packing heat is another way to say that somebody possesses a gun.
Packing heat means to be holding guns, and one must be near a building in order to be peeking around it.
"Packing heat" is an expression that means holding guns.