resizing borders for divs index