added the sliding rectangle, left and width have to be modified by the js code