Average gas price falls slightly to $2.40 a gallon