351w

Nope. 351M and 400 are both small blocks. You don't differentiate big and small block by physical size. The 221-400 all have the same bore spacing. The heads will interchange, because the bolt patterns are the same. Ford always referred to the 335 series (351C, 351M and 400) as small blocks, because they were.
I was kidding... LOL :D yes, the bell housings confused a lot of folks. I was told when I had my Cleveland, that 351M heads were the same.