I am trying to create a table with fractions in it and every other row being coloured. Because of the fractions, I am having to space out the rows in the table, but this seems to be conflicting with the colouring of the rows and now the colouring isn't working.
Here is where my code is at the moment:
\documentclass{article}
\usepackage{amsmath}
\usepackage{color, colortbl}
\definecolor{Gray}{gray}{0.9}
\def\xstrut{\rule[-2ex]{0pt}{5ex}}
\usepackage{booktabs}
\usepackage{cellspace}
\setlength\cellspacetoplimit{3pt}
\setlength\cellspacebottomlimit{3pt}
\usepackage{makecell}
\setcellgapes{3pt}
\begin{document}
\begin{table}[!htbp]
\centering\makegapedcells
\setlength{\tabcolsep}{1em}
\begin{tabular}{c | cc | cc}
\toprule
\textbf{Parameters} & \multicolumn{2}{c|}{A} & \multicolumn{2}{c}{B} \\ \midrule
\rowcolor{Gray} $(2, n, 3)$ & $\displaystyle \dfrac{2}{3}$ & $\displaystyle \dfrac{3}{2}$ & $\displaystyle \dfrac{2}{3}$ & $\displaystyle \dfrac{3}{2}$ \\
$(2, n, 4)$ & $\displaystyle \dfrac{3}{4}$ & $\displaystyle \dfrac{4}{3}$ & $\displaystyle \dfrac{3}{4}$ & $\displaystyle \dfrac{4}{3}$ \\
\rowcolor{Gray} $(4, n, 8)$ & $\displaystyle \dfrac{1}{4}$ & $\displaystyle 4$ & $\displaystyle \dfrac{5}{8}$ & $\displaystyle \dfrac{8}{5}$ \\ \bottomrule
\end{tabular}
\caption{Comparison of A and B}
\label{tab:results}
\end{table}
\end{document}
which produces the following table:
which I am happy with, but I would like the second and fourth rows shaded.
Any help would be really appreciated.


