I'm designing a custom PCB for a project. The project will use a common 16x2 LCD screen, which will be removable and attached to a single-row of female pin headers soldered to the PCB, similar to an Arduino. This will leave some space under the LCD, which I'm populating with the other components I need. One (actually two) of these components are decoupling capacitors (a 10uF electrolytic and a 0.1uF ceramic) for a RF module located under the LCD screen.
Now, here's the problem: while the ceramic capacitor is short enough to fit under the LCD screen I'm afraid the electrolytic capacitor isn't. Since I'm hoping to keep them as close to the RF module as possible, as it is needed for effective decoupling on the RF module power supply line, can I (very carefully) bend the electrolytic capacitor's legs 90 degrees and solder it parallel to the PCB? My other option would be to put this capacitor next to the LCD screen, which would be around 1cm (0.4 in) away from where it is now. I'm not an expert on decoupling but that seems like a lot and wouldn't it defeat the purpose of using it in the first place?