improve gallery and video parts