line 18 only leads to close the div if by chance the number of actual children happens to be divisible by the divisible_by - if there is an unfinished row at the end, we do need this bit here. that is why i propose the change for line 18 above. can you try that and update the PR please? the PR as you propose is going to break for a container that has say divisible_by = 3 and has 8 children.