Thank you for the help, in the end the problem was in the slug, as the code didn't handle the .main divs as individual elements, but as a collective. :)