The effect of modulation in a bistable system with delay