If you want them close together first put them in the tank a distance apart then slowly move them closer over a period of a couple weeks. I have a 17 head torch , a 7 head hammer , and a 10 head frogspawn and they are next to each other and I have had no ill effects from it.
If you put them close together right from the start they will irritate each other.