Wash chicken thoroughly and then pat dry. Rub the chicken with olive oil and season on both sides with garlic, salt, rosemary, black pepper, and onion. Place lemon slices in the pan and add the seasoned chicken on the top. Cover with aluminum foil and bake for an hour. Uncover and bake for an additional 20-30 minutes until chicken is brown and crispy.