resizing borders index