Congruences for some partition functions by using dissection of q-products and Ramanujans theta functions