Atoms and molecules in soft confinement potentials