Boyle's Law is a special equation depicting ideal gas behavior. It is applicable to systems working at constant temperature, such that there is a constant for every product of pressure and volume.
PV = k
The reason why pressure is changed slowly is because pressure affects kinetic energy which defines temperature. Thus, changing the pressure slowly would help keep the temperature constant as possible. So, the answer is avoid changing the gas temperature.