adding animation styles to gallery page.