The slider looks like a bar, but one end node is free to move on the bar. Here also is demonstrated how to apply mass on an element. The position of mass and inertia is defined by the user.