Melding the two ideas (groups and animating the bars) together. Sorry for the confusion.
A simple table, like this?
Lua Code:
local barGroups = {}
local bar = table.remove(barGroups)
if not bar then
bar = LibCandyBar:New(...)
end
-- bar ended
table.insert(barGroups, bar)