Call to a member function limit() on array

I’m collecting the tags used in my site and looping through them like this:

$tags = A::shuffle($site->grandchildren()->listed()->pluck('tags', ',', true));

 foreach ($tags as $tag): ?>

etc. This works fine, but I need to →limit(), which doesn’t work on an array. How can I convert this array in to an object that I can limit?

See A::slice() | Kirby CMS