Moving slider to directive.