update image width in @gap