add swipe and keyboard js to change posts