Fix overlapping divs with major selection