Remove contents from sidebar if not visible