Make sidebar act like bootstrap's nav-stacked with collapse functionality if sidebar page contains a nested ul