add a border (and remove it from the last one)