The total amount of energy is the same throughout the ride, when going to the top of the hill and slowing down the kinetic energy is decreasing while the potential energy increases. Once the roller coaster is a the peak of the hill nearly all of the kinetic energy is transferred to potential energy, the reason all of it is not is because the roller coaster does not completely stop. Once the roller coaster goes down the hill, the potential energy that was built up from the climb of the hill is transferred to kinetic energy and the coaster goes fast, eventually the roller coaster slows down the roller coaster, the reason is because of friction. Another reason the roller coaster would slow down is due to it climbing another hill.