create initialize and add slugs and query to scope