fixed ifr_gain slicing, again