Particle trapping in a capillary tube