reworked portfolios sub nav toggle function