Obstacles spawning for an endless runner

How can I stop my spawned obstacles to stop overlapping with each other? Like I am spawning different type of obstacles for my endless runner using arrow component but when the longer obstacles spawn they overlap with other obstacle of next tile how do I stop this from happening?