adding hover effect on gallery pages