adjusted for minimum bed clearance

Changed max lengths to not crash the head into bed on first startup