I have 100 groups and each group has some elements inside. For the cross validation, I want to make five bins which their size is as equal as possible.
Is there any algo
This is not a cluster analysis problem (I rewrote the question to use the more appropriate wording for you). Cluster analysis is a structure discovery task.
Instead, have a look at the following two related problems from computer science:
All of these appear to be NP-hard, so you will want to use an approximation only (if you have large data, with just 5 examples you can easily brute-force all combinations)