Enhanced sliding navigation with toggle directive