Slider Flashes when changing


this is my site

I have activated the slider on the front page. My problem is when the image changes it flashes and it looks ugly. Please help me fix this.

I know it has something to do with this

But I am unable to apply the fix to the theme, please help.