Added snapping for page margins