better brightness transition

Make the brightness change less visible while dimming or brightening