The Philistines were on one hill. The Israelites were on the other hill. The valley was between them.