extracted slugging to a gem