Getting smart about sliders

Trying to DRY this sucker out with clever functions. This will take a
few days to sort out properly, so it won't be uploaded until I can
guarantee it's all working.