fix query param assignment in image grid