Fixed slide transition flicker in Safari

Here is a new pull request!