Photo gallery details animation behaves more naturally