Update pageslider.js

The page is removed after transitionend even if the user presses back in the meantime. The proposed change should fix that.