front animation added, integrate with the gallery