Removed hard-coded values. Moved slug query outside application loop.