Improved hide div logic in Filter Item display