add filter to gallery images
fix some problems