Updated script to dynamically change slide direction on skills list