adds automatic animation-grouping (currently ignores -g flags)