improve fb gallery animation