Extract common pieces of slide animation