The Confinement of Vortices in Nano-Superconducting Devices