compact all query module elements fofr mobile