adding transition to layer object
fix bug