Add index to div.