mark layers dirty when stride changed