fixed slider at the ends; added elastic math test