added a hack to prevent jerking slide motion