Settings Slug localize variable for function

Signed-off-by: Phil Johnston <johnstonphilip@gmail.com>