Fix responsive flex-prev/flex-next refs #5769