group specified count of children selectors inside a parent dynamically