change the layer opacity during sliding rather than when sliding had ended