prototype for slide navigation working