creating reverse transition
cleaning up css for slide transition
handline forward and backward