Bacterial persistence, tolerance to antibiotics via stochastic phenotype switching, provides a survival strategy and a fitness advantage in temporally fluctuating environments. Here we study its possible benefit in spatially varying environments using a Fisher wave approach. We study the spatial expansion of a population with stochastic switching between two phenotypes in spatially homogeneous conditions and in the presence of an antibiotic barrier. Our analytical results show that the expansion speed in growth-supporting conditions depends on the fraction of persister cells at the leading edge of the population wave. The leading edge contains a small fraction of persister cells, keeping the effect on the expansion speed minimal. The fraction of persisters increases gradually in the interior of the wave. This persister pool benefits the population when it is stalled by an antibiotic environment. In that case, the presence of persister enables the population to spread deeper into the antibiotic region and to cross an antibiotic region more rapidly. Further we observe that optimal switching rates maximize the expansion speed of the population in spatially varying environments with alternating regions of growth permitting conditions and antibiotics. Overall, our results show that stochastic switching can promote population expansion in the presence of antibiotic barriers or other stressful environments.