build range resize functionality