clean gallery view and other stuffs