add nth-child and nth-of-type pseudo selectors