$(document).ready(function(index) {
  $(".page_section").each(function(index) {
    if ((index + 1) % 3 === 0) $(this).css("margin", "0");
  });
});
