ADEN-1613 Refactor hide slot func.