Pebble Trapping in Vortices: Three-dimensional Simulations