change the layer opacity during sliding rather than when sliding had end...

...ed