generic slider component, using display object injection.