If the tanks footprint is longer than taller and with the right decor you shouldn't have too much of an issue. More than likely your fish will encounter one another but as long as the other can swim faster and get away from that specific territory all should be fine..
Good luck and have fun..