A unified approach towards describing rapidity and transverse momentum distributions in a thermal freeze-out model