Changed bef/after table to use nth child selectors