add slide functions for rows and cols