Adding a jQuery UI widget in the administrative front-end
drupal_add_library() can be called from pretty much anywhere, including your form function:

function my_form_name($form, &amp;$form_state) {
  drupal_add_library('system','ui.slider');

  // Build and return the form.
}