Partial gathering of mobile agents in dynamic rings