Create non-overlapping borders around overlapping html elements