Updated custom function for Slim Nav