The two girls were posing for the camers while they were on a ride