Added gravity to a subview