The best place to spray is right in the middle of the pot. You want the barrier ring of WD-40 to be at least three to four inches wide so the slug can't cross.
Be sure not to spray the plant as it can burn the leaves, causing more damage than the slugs and snails would, or the soil, as you don't want the plant to digest the chemicals.