The magnets have to be in phase for that to work.
If your magnets are say, 1 inch diameter magnetized on opposing sides of the cylinder then it will be more efficient to force them all together to make 1, 6 inch long magnet. however, they will NOT want to stay together and such a construction would be difficult to pull off.. milling a keyway in them and pushing them down a thin stainless or copper pipe would work but that is a lot of work.