fix issue with first-child and last-child when grid-container is used instead on "container" classname.

Prefer the "container" classname or your grid container instead of "grid-container"