No, a flat potential does not come naturally with periodic boundary conditions, because in the slab approximation of an interface you have an artificial surface dipole across the periodic boundary, which compensates the real dipole at the interface between the two materials. QE and other codes have a 3rd dipole (also artificial) which compensates for this, whereas in ATK the more physically correct approach is to use Dirichlet/Neumann to eliminate it. If you have a slope still, it means by definition you do not have enough vacuum. Don't be afraid to add more - unlike a plane wave code, vacuum is essentially "free" in ATK, so you can put quite a lot, it will not increase the simulation time substantially.
But - the main question is why use the slab approximation when you can treat the interface properly using the device configuration...