added css transition classes for overlay images