transition of caption in slider