it is not bad to give alms in public. however if you give them privately to the poor it would be better for you and an expiation for some of your sins. god is wellaware of what you do.
إن تبدوا الصدقات فنعما هي وإن تخفوها وتؤتوها الفقراء فهو خير لكم ويكفر عنكم من سيئاتكم والله بما تعملون خبير