added filter functionality to show/hide images after initial load