custom gallery and soundrecorder, and alignment correction