Making it more mobile friendly. Fixing transitionend bug that appears on safari