add slidechange event handler