Shouldn't be any problem if the case is mechanically Strong enough and you don't have them in an extremely hot place.
One thing you can do is put small blocks of some kind under the feet of the one your are putting on top. That will raise it up a little and allow a little more air flow between them.