added some basic filtering of gallery