Add margin top and bottom to each group