I'm more concerned as to why people feel the need to lie down on the sidewalk. Is this what our society has evolved to?
No one should be allowed to block a walkway, but apparently there is a need for more benches.
So far you have a solution that won't solve the problem. This will not get rid of homeless people.